package com.kerwin;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
/*mybtis扫描配置文件 *是系统目录 比如sys/mapper*/
/*这个叫做mybatis的mapper接口代理对象注册*/
@MapperScan("com.kerwin.*.mapper")
/*启用事务管理注解扫描*/
/*需要开启事务  在方法上加@Transactional*/
@EnableTransactionManagement
/*aop注解识别  aspectj*/
@EnableAspectJAutoProxy
public class BootApplication {
    public static void main(String[] args) {
        SpringApplication.run(BootApplication.class,args);
    }


}

